package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_cross_trade_war_battle", desc = "跨服商战战斗日志", autoSave = true, uploadCk = true)
public class LogCrossTradeWarBattle extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "战斗类型")
    private int battleType;
    @FieldTypeAnnotation(desc = "对手用户id")
    private long enemyUserId;
    @FieldTypeAnnotation(desc = "击杀门客数量")
    private int killPatronsCount;
    @FieldTypeAnnotation(desc = "获得积分")
    private long addScore;
    @FieldTypeAnnotation(desc = "对手输掉积分")
    private long enemyLoseScore;
    @FieldTypeAnnotation(desc = "奖励")
    private String reward;
    @FieldTypeAnnotation(desc = "增加赚速")
    private long addEarnSpeed;
    @FieldTypeAnnotation(desc = "购买buff次数")
    private int buyBuffTimes;

    public LogCrossTradeWarBattle(long userId, int battleType, long enemyUserId, int killPatronsCount, long addScore, long enemyLoseScore, String reward, long addEarnSpeed, int buyBuffTimes) {
        this.userId = userId;
        this.battleType = battleType;
        this.enemyUserId = enemyUserId;
        this.killPatronsCount = killPatronsCount;
        this.addScore = addScore;
        this.enemyLoseScore = enemyLoseScore;
        this.reward = reward;
        this.addEarnSpeed = addEarnSpeed;
        this.buyBuffTimes = buyBuffTimes;
    }

    public long getUserId() {
        return userId;
    }

}
